package com.qkjia.day02;

import com.qkjia.day01.SleepUtils;

public class Test02_Lock8 {
    public static void main(String[] args) {
        Phone phone1 = new Phone();
        Phone phone2 = new Phone();
        new Thread(()->{
            phone1.sendMessage1();
        },"AA").start();

        SleepUtils.second(1);

        new Thread(()->{
            phone2.hello();
        },"BB").start();
    }
}
